<%@ page language="java" import="java.io.*, org.apache.log4j.*, com.erclab.internal.xpresso.security.User" %>
<%@ page isErrorPage="true" %>

<%  // -----------------------------------------------------------
    // This page Collects and stores errors generated in the 
    // application
    // -----------------------------------------------------------

    String exceptionOcurred = exception.toString();
    String exceptionMessage = exception.getMessage();

    if (exceptionMessage != null){
        exceptionMessage = exceptionMessage.replaceAll("'", "");
        exceptionMessage = exceptionMessage.replaceAll("\"", "");
    }

    String stackTrace;

    StringWriter sout = new StringWriter();
    PrintWriter pout = new PrintWriter(sout);
    exception.printStackTrace(pout);
    stackTrace = sout.toString();
    
    String ip = request.getRemoteAddr();

    String netId = (String)session.getAttribute("netId");

/*	Logger logger = Logger.getLogger("");
	logger.error("\n ******************* gPROMPT EXCEPTION ******************* " + 
				"\n The jsp error page caught an exception:\n"
						+ exceptionOcurred + "\n"
						+ exceptionMessage + "\n"
						+ stackTrace + "\n"
						+ "Current User: " +  ((User)session.getAttribute("user")).getNetId());*/
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/ERCLab.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>ERCLab.com</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link href="../html/css/erclab.css" rel="stylesheet" type="text/css">
</head>

<body background="../html/images/PageBackground.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="789" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="../html/images/Main-Background.gif">
  <tr> 
    <td height="17" colspan="3"><img src="../html/images/Header-top.gif" width="789" height="27"></td>
  </tr>
  <tr> 
    <td width="14" height="142">&nbsp;</td>
    <td height="142"><img src="../html/images/ERCLabMain.jpg" width="764" height="142"></td>
    <td width="11" height="142">&nbsp;</td>
  </tr>
  <tr> 
    <td width="14" height="22">&nbsp;</td>
    <td height="22"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><img src="../html/images/menu-bar/SpaceLeft.gif" width="304" height="22"></td>
          <td><img src="../html/images/menu-bar/SpaceMiddle.gif" width="21" height="22"></td>
          <td><a href="Home.report"><img src="../html/images/menu-bar/Blog.gif" width="65" height="22" border="0"></a></td>
          <td><a href="Freelance.jsp"><img src="../html/images/menu-bar/FreeLance.gif" width="101" height="22" border="0"></a></td>
          <td><a href="Portfolio.jsp"><img src="../html/images/menu-bar/Protfolio.gif" width="109" height="22" border="0"></a></td>
          <td><a href="Resume.jsp"><img src="../html/images/menu-bar/About.gif" width="83" height="22" border="0"></a></td>
          <td><a href="Album.report"><img src="../html/images/menu-bar/PhotoAlbum.gif" width="81" height="22" border="0"></a></td>
        </tr>
      </table></td>
    <td width="11" height="22">&nbsp;</td>
  </tr>
  <tr> 
    <td width="14">&nbsp;</td>
    <td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td>&nbsp;</td>
          <td width="215">&nbsp;</td>
        </tr>
        <tr> 
          <td valign="top"><!-- InstanceBeginEditable name="Content" --> 
            <p>You dont have access to this page. EXCEPTION OCURRED:<br>
              <%= exceptionOcurred %> </p>
            <form name="form1" method="post" action="">
              <p>User name: 
                <input type="text" name="textfield">
                <br>
                Password:
                <input type="text" name="textfield2">
                <br>
                <input type="submit" name="Submit" value="Submit">
              </p>
              </form>
            <p>&nbsp; </p>
            <!-- InstanceEndEditable --></td>
          <td align="right" valign="top"><!-- InstanceBeginEditable name="Options" -->Options<!-- InstanceEndEditable --></td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table></td>
    <td width="11">&nbsp;</td>
  </tr>
  <tr background="../html/images/BottomLayout.gif"> 
    <td height="29" colspan="3">&nbsp;</td>
  </tr>
</table>
</body>
<!-- InstanceEnd --></html>
